package com.neucloud.da.edgeside.model.constant;

/**
 * @author yinheng6
 * @version V1.5
 * @description:
 * @date 2021/1/10 14:47
 * @copyright Copyright @2020 智能城市icity.jd.com ALL Right Reserved
 */
public enum SecurityCode {
    // 系统模块
    SUCCESS(0, "操作成功"),
    ERROR(1, "操作失败"),

    //sign error
    SIGN_NO_APP_ID(10001,"appId参数不能为空"),
    SIGN_NO_TIMESTAMP(10002, "timestamp参数不能为空"),
    SIGN_NO_SIGN(10003, "signature参数不能为空"),
    SIGN_NO_NONCE(10004, "nonce参数不能为空"),
    SIGN_TIMESTAMP_INVALID(10005, "timestamp参数无效"),
    SIGN_DUPLICATION(10006, "重复的请求"),
    SIGN_VERIFY_FAIL(10007, "signature参数签名校验失败"),
    SIGN_NO_SERVICE_ID(10008, "serviceId参数不能为空"),
    SIGN_REQUEST_GET_FAILED(10009, "获取request失败"),
    SIGN_WRONG_SERVICE_ID(10010, "不存在的serviceId")
            ;



    SecurityCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }

    private String msg;
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
